package com.lagou.seckill.base.controller.demo;


import com.lagou.seckill.base.component.DemoComponent;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author genCode
 * @since 2023-02-22
 */
@Slf4j
@RestController
@Api(value = "DemoController", tags = "测试接口")
@RequestMapping("/demo")
@RequiredArgsConstructor
public class DemoController {
    private final DemoComponent demoComponent;

    @ApiOperation(value = "post")
    @PostMapping("/demo")
    public void demoPost() {

    }

    @ApiOperation(value = "get")
    @GetMapping("/demo")
    public void demoGet(){

    }
}
